package com.budwk.app.miniapp.common.enums;

import lombok.Getter;
import org.nutz.ioc.impl.PropertiesProxy;

import java.util.Arrays;
import java.util.stream.Collectors;

/**
 * 安全隐患状态a17
 */
@Getter
public enum WxEventEnum {

    A("佑瑞社区","13765050422" ),
    B("龙泽社区","13329608685" ),
    C("嘉禧社区","16685570273" ),
    D("龙吉社区","18985187594" ),
    E("昌祥社区","16685571181" ),
    AQ("龙盛社区","18798765570" ),
    AW("龙贤社区","18198268139" ),
    AE("晖福社区","13984410231" ),
    AR("龙泉社区","18785077374" ),
    AT("慧慈社区","13508587971" ),
    AD("锦祺社区","13385500796" ),
    AC("兰凯社区","18275247717" ),
    AS("龙耀社区","16685577019" ),
    AF("龙兴社区","18096066338" ),
    AH("龙凯东苑社区","15285644233" ),
    AX("龙宇社区","15185166779" ),
    AZ("景怡苑社区","18984027468" ),
    AL("金谷苑社区","13765033118" ),
    AA("睿力上城社区","16685571127" ),
    APP("观山小区社区","13628595999" ),
    AG("龙泉村","13511937122" );

    private String community;
    private String phone;
    WxEventEnum(String community, String phone ) {
        this.community = community;
        this.phone = phone;
    }

    public static String getPhoneByCommunity(String community){
        String  phone = Arrays.asList(WxEventEnum.values())
                .stream()
                .filter(e -> community .equals(e.getCommunity()) )
                .collect(Collectors.toList())
                .get(0)
                .getPhone();
        return  phone;
    }

}
